package com.iss.soc.saibong.manager;

import com.iss.soc.ApiEnvironment;
import com.iss.soc.httpclient.RestClient;
import okhttp3.logging.HttpLoggingInterceptor;

import java.util.concurrent.TimeUnit;

/**
 * manager管理
 */
public class ManagerBase {
    public static RestClient restClient;
    //版本号
    protected static   String apiVersion;

    //创建连接
    public  void createClients() {
        restClient = ApiEnvironment.getApi()
                .newRestSaibongClientBuilder()
                .withLogLevel(HttpLoggingInterceptor.Level.BODY)
                .withReadTimeout(100, TimeUnit.SECONDS)
                .withConnectionTimeout(100, TimeUnit.SECONDS)
                .build();
        apiVersion = "v1";
    }
}
